
//
//  UIColor+Ex.swift
//  YitihuaPH
//
//  Created by Kai Kang on 2019/1/23.
//  Copyright © 2019 Kai Kang. All rights reserved.
//

import Foundation
import UIKit

extension UIColor {
    convenience init(hex: UInt32) {
        self.init(red: CGFloat((hex & 0xFF0000) >> 16) / 255.0,
                  green: CGFloat((hex & 0xFF00) >> 8) / 255.0,
                  blue: CGFloat((hex & 0xFF)) / 255.0,
                  alpha: 1.0)
    }
}
